import request from '@/utils/request'

export function getCurrencys(query) {
  return request({
    url: '/foundation/currency/getList',
    method: 'post',
    data: query
  })
}
export function getCurrencyUsableList(data) {
  return request({
    url: '/foundation/currency/getUsableList',
    method: 'post',
    data: data
  })
}


export function getCurrency(id) {
  return request({
    url: '/foundation/currency/getDetail',
    method: 'post',
    data: id
  })
}

export function saveCurrency(id) {
  return request({
    url: '/foundation/currency/save',
    method: 'post',
    data: id
  })
}

export function removeCurrencyByID(id) {
  return request({
    url: '/foundation/currency/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByCurrencyID(formdata) {
  return request({
    url: '/foundation/currency/change-status',
    method: 'post',
    data: formdata
  })
}

export function getCurrencyAvabile(query) {
  return request({
    url: '/foundation/currency/getAvailable',
    method: 'post',
    data: query
  })
}

